package com.ctgu.ImageRecognition.controller;

import com.ctgu.ImageRecognition.entity.Phototag;
import com.ctgu.ImageRecognition.service.PhototagService;
import com.ctgu.ImageRecognition.util.ResultUtil;
import com.ctgu.ImageRecognition.vo.ResultVO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Phototag)表控制层
 *
 * @author 
 * @since 2023-07-05 18:31:03
 */
@RestController
@RequestMapping("/photoTag")
public class PhototagController {
    /**
     * 服务对象
     */
    @Resource
    private PhototagService phototagService;


/**
* Description:通过标签ID查询出照片
* @author: 吴杰
* @date: 2023/7/14 9:03
* @param:
 * * @return:
*/

    @RequestMapping("/queryTid")
    public ResultVO queryByTid(int tId){
        return ResultUtil.success("查询成功",phototagService.queryByTid(tId));
    }
}

